package com.tcxhb.job.admin.model.response;

import com.tcxhb.job.common.model.job.JobParams;
import com.tcxhb.job.common.model.job.RunStrategy;
import com.tcxhb.job.common.model.job.ScheduleConf;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * author:auto.generator
 * time: 2023-11-02
 */
@Data
public class JobInfoVO implements Serializable {
    @ApiModelProperty("")
    private Integer id;
    @ApiModelProperty("所属应用ID")
    private String appName;
    @ApiModelProperty("任务名称")
    private String jobName;
    @ApiModelProperty("调度类型：0,手动触发，1定时触发")
    private Integer scheduleType;
    @ApiModelProperty("调度配置，值含义取决于调度类型")
    private ScheduleConf scheduleConf;


    @ApiModelProperty("执行器任务handler，参数")
    private JobParams jobParams;
    @ApiModelProperty("运行参数配置: 重试次数，超时时间")
    private RunStrategy runStrategy;


    @ApiModelProperty("调度状态：0-停止，1-运行")
    private Integer status;

    @ApiModelProperty("上次调度时间")
    private Long lastTime;
    @ApiModelProperty("下次调度时间")
    private Date nextDateTime;

    @ApiModelProperty("")
    private Date createTime;
}
